package com.ruoyi.bookkeeping.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.ruoyi.bookkeeping.domain.BookDynamic;

/**
 * 动态Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
public interface BookDynamicMapper extends MPJBaseMapper<BookDynamic>
{
    /**
     * 查询动态
     * 
     * @param dynamicId 动态主键
     * @return 动态
     */
    public BookDynamic selectBookDynamicByDynamicId(Long dynamicId);

    /**
     * 查询动态列表
     * 
     * @param bookDynamic 动态
     * @return 动态集合
     */
    public List<BookDynamic> selectBookDynamicList(BookDynamic bookDynamic);

    /**
     * 新增动态
     * 
     * @param bookDynamic 动态
     * @return 结果
     */
    public int insertBookDynamic(BookDynamic bookDynamic);

    /**
     * 修改动态
     * 
     * @param bookDynamic 动态
     * @return 结果
     */
    public int updateBookDynamic(BookDynamic bookDynamic);

    /**
     * 删除动态
     * 
     * @param dynamicId 动态主键
     * @return 结果
     */
    public int deleteBookDynamicByDynamicId(Long dynamicId);

    /**
     * 批量删除动态
     * 
     * @param dynamicIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBookDynamicByDynamicIds(Long[] dynamicIds);
}
